package com.lucanjun.cn.springboot.multipledatasources.common.annotation.privacy;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author lucanjun
 * @version 1.0.0
 * @title UserVo
 * @create 2024-12-19 16:55:19
 * @description 查询用户数据响应对象
 */
@Data
@Schema(name = "UserVo", description = "查询用户数据响应对象")
public class UserVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "用户姓名")
    @PrivacyEncrypt(type = PrivacyTypeEnum.NAME) // 隐藏姓名
    private String userName;

    @Schema(description = "用户手机号")
    @PrivacyEncrypt(type = PrivacyTypeEnum.PHONE) // 隐藏手机号
    private String userMobile;

    @Schema(description = "用户邮箱")
    @PrivacyEncrypt(type = PrivacyTypeEnum.EMAIL) // 隐藏邮箱
    private String userEmail;

}
